package com.songcha.library_business.util

import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.Settings

class PermissionUtil {
    companion object{
        @JvmStatic
        fun toPermissionSetting(context: Context){
            val intent = Intent()
            intent.action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
            val uri = Uri.fromParts("package", context.packageName, null)
            intent.data = uri
            context.startActivity(intent)
        }
    }
}